]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
overviewControls: Factor in margin-bottom for dash startup animation
authorJonas Dreßler <verdre@v0yd.nl>
Wed, 16 Feb 2022 19:02:48 +0000 (20:02 +0100)
committerMarge Bot <marge-bot@gnome.org>
Wed, 16 Feb 2022 20:08:44 +0000 (20:08 +0000)
We set a margin-bottom on the dash to give it some margin towards the
monitor edge, we need to factor in this margin when moving it outside of
the monitor for our animation.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2191>

js/ui/overviewControls.js

index 2344ad8eb085097631d51c7e31ba3575ede98c4f..d3df21ea0722df12797f5c4a2bfd819b265e44b2 100644 (file)
@@ -842,7 +842,7 @@ class ControlsManager extends St.Widget {
 
         // The Dash rises from the bottom. This is the last animation to finish,
         // so run the callback there.
-        this.dash.translation_y = this.dash.height;
+        this.dash.translation_y = this.dash.height + this.dash.margin_bottom;
         this.dash.ease({
             translation_y: 0,
             delay: STARTUP_ANIMATION_TIME,